package org.xb.decoupling02;

// 使用依赖注入的情况
class DatabaseConnection {
    private String databaseUrl;

    public DatabaseConnection(String databaseUrl) {
        this.databaseUrl = databaseUrl;
    }

    public void connect() {
        System.out.println("Connecting to the database at " + databaseUrl);
    }
}
